import {
  CommonProps,
  CommonState,
} from '@/plugins/form/form-components/common/SelectProps';

export class Props extends CommonProps {
  externalUrl?: (params: any) => any; // 获取数据的方法
  externalOption?: any; // 获取数据的方法的参数
  selectedValue?: any; // 默认展示值或回填已选值
  getFieldDecorator: (params1: any, params2?: any) => any;
  options: any;
  formOptions: any;
}

export class State extends CommonState {
  options: any[];
  selectedValue?: { label: string; text: string; value: string } | null;
  isModal = false;
  showModal?: boolean = false;
  checkedValue?: string;
  checkedLabel?: string | number;
}
